projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2be7198
)
project-switch-to-buffer: Improve Ido compatibility
author
Dmitry Gutov
<dgutov@yandex.ru>
Mon, 22 Jun 2020 13:58:02 +0000
(16:58 +0300)
committer
Dmitry Gutov
<dgutov@yandex.ru>
Mon, 22 Jun 2020 13:58:02 +0000
(16:58 +0300)
* lisp/progmodes/project.el (project-switch-to-buffer):
Check that the entry contains a non-nil CDR.
lisp/progmodes/project.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/project.el
b/lisp/progmodes/project.el
index 60abf54b2bb0128caed57f19fda3c7955d7d767b..2f213dab8b1b2dffc28f083d616c24bd74e04cad 100644
(file)
--- a/
lisp/progmodes/project.el
+++ b/
lisp/progmodes/project.el
@@
-810,7
+810,8
@@
is inside the directory hierarchy of the project's root."
(predicate
(lambda (buffer)
;; BUFFER is an entry (BUF-NAME . BUF-OBJ) of Vbuffer_alist.
- (and (not (eq (cdr buffer) current-buffer))
+ (and (cdr buffer)
+ (not (eq (cdr buffer) current-buffer))
(when-let ((file (buffer-local-value 'default-directory
(cdr buffer))))
(file-in-directory-p file root))))))